/**
 *
 */
package com.yidu.menuProject.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yidu.menuProject.action.vo.FoodVo;
import com.yidu.menuProject.model.FoodModel;
import com.yidu.menuProject.model.MealModel;

/**
 * @ author pengyong
 * @date 2018年7月13日 下午3:47:18
 * @ version 1.0
 */
public interface FoodService {
	int deleteByPrimaryKey(FoodVo vo);

    int insert(FoodVo vo);

    int insertSelective(FoodModel record);

    FoodModel selectByPrimaryKey(String foodId);

    int updateByPrimaryKeySelective(FoodModel record);

    int updateByPrimaryKey(FoodModel record);
    int deleteFood(FoodModel food);
    
    /**
     * 查询所有菜品
     */
    
    List<FoodModel> selectfoodAll(String mealId,@Param("foodName")String foodName, @Param("vo")FoodVo vo);
    
    
	/**
	 * @param record
	 * @return
	 */
	int selectcount(FoodVo vo);
}
